package com.bs.service.impl;

import java.util.List;

import com.bs.bean.Product;
import com.bs.dao.ProductDAO;

public class ProductServiceImpl implements com.bs.service.ProductService {
	private ProductDAO productDao;
	
	public ProductDAO getProductDao() {
		return productDao;
	}

	public void setProductDao(ProductDAO productDao) {
		this.productDao = productDao;
	}

	@Override
	public void save(Product product) {
		this.productDao.save(product);
	}

	@Override
	public List<Product> query(Product product) {
		return this.productDao.query(product);
	}

	@Override
	public int batchDelete(String ids) {
		return this.productDao.batchDelete(ids);
	}

	
}
